<script setup>
import MbIndex from "~/Components/mobile/mb-index.vue";
import PcIndex from "~/Components/pc/pc-index.vue";

import {useIndexStore} from "~/store";
import Loading from "~/Components/loading.vue";

const indexStore = useIndexStore();
const {data} = await useFetch("/api/user")
</script>

<template>
    <loading>
      <mb-index v-if="indexStore.isMobile"/>
      <pc-index v-else/>
    </loading>
</template>

<style scoped>

</style>